import { request,verifyToken } from 'config/request'
import config from '../../../config/config'

// 用户列表
export async function getDetail(params) {
    return request({
        url: `zituo-admin/a/platform/teamManager/showTeamDetail`,
        method: 'GET',
        data: params,
    });
};
// 获取资源树
export async function queryAllPermission(params) {
    return request({
        url: `zituo-admin/a/platform/orgManager/orgList`,
        method: 'GET',
        data: params,
    });
};

// 删除列表
export async function onDelete(params) {
    return request({
        url: `zituo-admin/a/sys/zituoTeamUser/delete`,
        method: 'POST',
        data: params,
    });
};

// 弹窗用户列表
export async function queryUserByOrg(params) {
    return request({
        url: `zituo-admin/a/platform/userManager/queryUserByOrg`,
        method: 'POST',
        data: params,
    });
};

//添加团队成员
export async function addTeamUser(params) {
    return request({
        url: `zituo-admin/a/platform/teamManager/addTeamUser`,
        method: 'POST',
        data: params,
    });
};
//删除团队
export async function delTeam(params) {
    return request({
        url: `zituo-admin/a/platform/teamManager/deleteTeamInfo?teamId=${params.id}`,
        method: 'POST',
    });
};
//编辑团队
export async function submit(params) {
    return request({
        url: `zituo-admin/a/platform/teamManager/save`,
        method: 'POST',
        data: params,
    });
  };
export async function verifyCodeFun(){
    return verifyToken();
  }




